Function.prototype.bind = function(thisObject) {
    var func = this;
    var args = Array.prototype.slice.call(arguments, 1);
    return function() {
        return func.apply(thisObject, args.concat(Array.prototype.slice.call(arguments, 0)))
    };
};

var teamcity = {};